/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.publish.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.equipment.entity.EleEquipment;
import com.thinkgem.jeesite.modules.templet.entity.EleTemplet;

/**
 * 资源发布包Entity
 * @author unnamed
 * @version 2017-06-04
 */
public class EleTempletPublish extends DataEntity<EleTempletPublish> {

	private static final long serialVersionUID = 1L;
	private String publishBatch;
	private String name;
	private EleTemplet templet;		// templet_id
	private EleEquipment equipment;		// equipment_id
	private String remarks;		// equipment_id
	private String isPublish;		// is_publish

	private String delApply; // 是否删除审请记录
	private String delApproval; // 是否删除审核记录

	public EleTempletPublish() {
		super();
	}

	public EleTempletPublish(String id){
		super(id);
	}

	public String getName(){
		return name;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getPublishBatch(){
		return publishBatch;
	}

	public void setPublishBatch(String publishBatch){
		this.publishBatch = publishBatch;
	}

	public EleTemplet getTemplet(){
		return templet;
	}

	public void setTemplet(EleTemplet templet){
		this.templet = templet;
	}

	public EleEquipment getEquipment(){
		return equipment;
	}

	public void setEquipment(EleEquipment equipment){
		this.equipment = equipment;
	}

	@Override
	public String getRemarks(){
		return remarks;
	}

	@Override
	public void setRemarks(String remarks){
		this.remarks = remarks;
	}
	@Length(min=0, max=1, message="is_publish长度必须介于 0 和 1 之间")
	public String getIsPublish() {
		return isPublish;
	}

	public void setIsPublish(String isPublish) {
		this.isPublish = isPublish;
	}

	public String getDelApply(){
		return delApply;
	}

	public EleTempletPublish setDelApply(String delApply){
		this.delApply = delApply;
		return this;
	}

	public String getDelApproval(){
		return delApproval;
	}

	public EleTempletPublish setDelApproval(String delApproval){
		this.delApproval = delApproval;
		return this;
	}
}